package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShopcartMapper {
    /*根据条件，查询购物车中的菜品*/
    List<ShoppingCart> list(ShoppingCart shoppingCart);


    /*更新数据库中购物车中的该菜品信息*/
    void update(ShoppingCart cart);
    /*向购物车中插入数据*/
    void insert(ShoppingCart shoppingCart);

    void clean(ShoppingCart shoppingCart);
}
